package com.xbongbong.saas.service;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.menu.pojo.dto.MenuInitDTO;
import com.xbongbong.saas.domain.entity.WorkOrderTemplateCategoryEntity;
import com.xbongbong.sys.domain.entity.UserEntity;

import java.util.List;

/**
 *
 * @author 魏荣杰
 * @date 2019/3/13 16:08
 * @since v1.0
 * @version v1.0
 */
public interface WorkOrderTemplateCategoryService {

    /**
     * Description: 初始化工单分类
     * @param menuInitDTO
     * @param userEntity
     * @return java.lang.Long
     * @throws XbbException XbbException
     * @author 魏荣杰
     * @date 2019/5/10 12:51
     * @since v1.0
     */
    Long initTemplateCategory(MenuInitDTO menuInitDTO, UserEntity userEntity) throws XbbException;

    /**
     * Description: 初始化工单
     * @param appId
     * @param userEntity
     * @return java.lang.Long
     * @throws XbbException XbbException
     * @author 魏荣杰
     * @date 2019/5/10 12:51
     * @since v1.0
     */
    Long saveDefaultCategory(Long appId, UserEntity userEntity) throws  XbbException;

    Long updateTemplateCategory(List<WorkOrderTemplateCategoryEntity> entitys, UserEntity userEntity ,MenuInitDTO menuInitDTO);
}
